package com.example.consumer.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.example.consumer.config.Result;

/**
 * \* @author: bear
 * \* Date: 2022-04-07-16:43
 * \* describe:
 */
@FeignClient(name = "user-info",fallback = UserServiceFallback.class)
public interface UserClient {

	@GetMapping("/index/userinfo")
	Result getuserInfo(@RequestParam String username);
}
